﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<PhotoGalleryEnteties.GalleryUser>>" %>
<%@ Import Namespace="PhotoGalleryEnteties" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	User list
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1> Registered users: </h1>
     


     
     <%foreach (GalleryUser user in Model)
       {%>
       <div class="Container">
        <div class="imgReference">
            <div>
                <img src="<%=user.Avatar!=null?Url.Action( "GetPhoto","Photo" ,new{id=user.Avatar.PhotoId ,photoType=PhotoType.ImageThumbnail } ): "/Content/index.jpg"  %>" alt="" />
      
            </div>
        </div>
        <div class ="PropertyList">
            <div class="property">
                <div class="display-field"><span class="TextClip" ></span><%= user.UserName %></div>
            </div>                
        </div>
        <div class="clear"></div>
        <%=Html.ActionLink( "Navigate to user root album","Details","Album",new{id=user.RootAlbum.AlbumId },new{@class="reference"} ) %>

       </div>
       <%}%>
       
    

</asp:Content>
